package com.ssmsq.multidatabase.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssmsq.multidatabase.entity.YwzxXiangmu;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author sss
 */
@DS("slave_1")
public interface YwzxXiangmuMapper extends BaseMapper<YwzxXiangmu> {

    @Select("select * from ywzx_xiangmu")
    List<YwzxXiangmu> selectByS();

    @Select("select * from ywzx_xiangmu")
    List<Object> selectByS2();

    @Select("select mc from ywzx_xiangmu")
    List<Object> selectByS3();

    @Select("select mc from ywzx_xiangmu")
    List<YwzxXiangmu> selectByS4();

    @Select("select * from ywzx_xiangmu")
    List<YwzxXiangmu> selectByS5();
}
